﻿<!DOCTYPE html>
<html lang="zh-CN" ><!-- manifest="manifest.appcache" -->
  <head>
    <#include "/v1.5/part_meta.ftl">
    <title>购物车 - 迈小众</title>
  </head>
<body>
<#include "/v1.5/part_navbar.ftl">
<div class="container" style="padding-bottom: 60px;">
  <div class="row col-md-offset-2 col-md-8" style="margin-top: 20px;padding:0px;">
    <p class="nr">正在加载...</p>
    <form id="form_cart" action="${st.userDomain}/order/add" method="post">
    <div class="list-group cart-list" style="display:none;">
      <div class="list-group-item list-group-item-success store-name">
        <p><a id="cartId_-{cartId}-" class="checkbox check"><input type="checkbox" value="-{cartId}-" checked class="hidden"></a><a href="${st.domain}/store/-{store.storeId}-" style="color: #3C763D;">-{store.name}-</a></p>
      </div>
      <div class="list-group-item" id="shoppings_-{cartId}-" data-node="shoppings">
        <div class="media" id="shopping_-{shoppings.shoppingId}-">
          <div class="media-left">
            <a class="checkbox check"><input type="checkbox" value="-{shoppings.shoppingId}-" checked class="hidden"></a>
          </div>
          <div class="media-body">
            <div class="media">
              <div class="media-left">
                <a href="${st.domain}/storeGoods/detail/-{shoppings.storeGoods.storeGoodsId}-" class="img-item"><img src="${st.resDomain}/v1.5/images/goods-def.png" data-src="-{shoppings.storeGoods.pic}-" alt="-{shoppings.storeGoods.title}-" class="media-object center-block"></a>
              </div>
              <div class="media-body">
                <p class="media-heading"><a href="${st.domain}/storeGoods/detail/-{shoppings.storeGoods.storeGoodsId}-">-{shoppings.storeGoods.title}-</a></p>
                <p><b style="color:#EA0000;">￥-{shoppings.storeGoods.price}-</b> /-{shoppings.storeGoods.unit}-</p>
              </div>
            </div>
            <div style="margin-top:5px;">
              <div class="col-xs-7 col-sm-4">
                <div class="input-group input-group-sm">
                  <span class="input-group-btn">
                    <button class="btn btn-default bCountBt-m" type="button">－</button>
                  </span>
                  <input type="text" value="-{shoppings.buyCount}-" class="form-control bCount">
                  <span class="input-group-btn">
                    <button class="btn btn-default bCountBt-a" type="button">＋</button>
                    <span class="buy-unit">-{shoppings.storeGoods.sellUnit}-</span>                 
                  </span>
                </div>
              </div>
              <div class="ctrl col-xs-5 col-sm-8">
                  <a class="delBt">删除</a>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    </form>       
  </div>
  <#include "/v1.5/part_footer.ftl">  
</div>
<nav class="navbar navbar-default navbar-fixed-bottom settle">
  <div class="container">
    <div class="row col-md-offset-2 col-md-8">
      <div class="col-xs-6 cost">
        <h2 id="totalPrice">￥0.00</h2>
      </div>
      <div class="col-xs-6">
        <button type="button" id="settleBt" class="btn btn-success btn-lg col-xs-12">去结算</button>
      </div>            
    </div>
  </div>
</nav>
<script data-main="${st.resDomain}/v1.5/js/user/shoppingCart" src="${st.resDomain}/v1.5/js/require.js"></script>
</body>
</html>
